﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Utils.Common;
using ZK.Entity.Config;

namespace ZK.BLL.Config
{

    [Serializable]
    public  class  TempConfig : ConfigBase
    {

        private static TempConfig config;
        public static TempConfig GetConfig()
        {
            if (config == null)
            {
                config = ConfigHelper.BackSerialize(new TempConfig());
                if (config == null)
                {
                    config = new TempConfig();
                    
                }
 
            }
            return config;
        }


        //修改 
        public bool EditConfig()
        {
            try
            {
                return ConfigHelper.Serialize(config);

            }
            catch
            {
                return false;
            }
        }

        public string CustomerName { get; set; }

        public string ProductName { get; set; }


        public string ModelNo { get; set; }
        public string BatchNo { get; set; }

      
        public string PatentNo { get; set; }

        public string UserId { get; set; }
    }
}
